TEMPLATE = lib
QT += phonon
CONFIG += qt \
    uitools \
	dll # \
	#hunspell
SOURCES = analyzers/zipanalyzer.cpp \
    analyzers/raranalyzer.cpp \
    analyzers/extractor.cpp \
    analyzers/analyzer.cpp \
    boardparsers/parserfactory.cpp \
    boardparsers/boardparser.cpp \
    chanagents/defaultagent.cpp \
    chanagents/chanagent.cpp \
    chanagents/agentfactory.cpp \
    spellcheck/spellcheckermanager.cpp \
    spellcheck/spellchecker.cpp \
    spellcheck/dummyspellchecker.cpp \
    sqlite3/sqlite3.c \
    sqlite3/CppSQLite3.cpp \
    ui/threadoverviewdelegate.cpp \
    ui/threaditemmodel.cpp \
    ui/threaditemdelegate.cpp \
    ui/spellcheckhighlighter.cpp \
    ui/settingsframe.cpp \
    ui/postwidget.cpp \
    ui/postitemview.cpp \
    ui/postitemmodel.cpp \
    ui/postitemdelegate.cpp \
    ui/postedit.cpp \
    ui/postdocument.cpp \
    ui/newchandialog.cpp \
    ui/mainwindow.cpp \
    ui/imagewidget.cpp \
    ui/imageview.cpp \
    ui/imagemanager.cpp \
    ui/imagelist.cpp \
    ui/filteredit.cpp \
    ui/chanlisteditor.cpp \
    ui/boardsettingsdialog.cpp \
    ui/imageeditor/newimagedialog.cpp \
    ui/imageeditor/imageeditor.cpp \
    ui/imageeditor/imageeditarea.cpp \
    ui/imageeditor/colorwidget.cpp \
    chanmanager.cpp \
    log.cpp \
    keymapmanager.cpp \
    keymap.cpp \
    imagestorage.cpp \
    filtertext.cpp \
    filterlist.cpp \
    filter.cpp \
    extracontainer.cpp \
    threadstorage.cpp \
    text.cpp \
    taskhub.cpp \
    task.cpp \
    filterwipe.cpp \
    ui/imageeditor/toolselection.cpp \
    ui/imageeditor/toolpencil.cpp \
    ui/imageeditor/editortool.cpp \
    components/threadptr.cpp \
    components/thread.cpp \
    components/postid.cpp \
    components/post.cpp \
    components/chan.cpp \
    components/board.cpp \
    components/attachment.cpp \
    ui/exportthreaddialog.cpp \
    threadsaver.cpp \
    threadbuilderfactory.cpp \
    threadbuilder.cpp \
    mimetypes.cpp \
    chanwatcher.cpp \
    templatethreadbuilder.cpp \
    ui/templatethreadbuilderconfig.cpp \
    ui/tasklist.cpp \
    ui/imageeditor/toolfill.cpp \
    tasks/taskrequest.cpp \
    tasks/tasksavethread.cpp \
    paths.cpp \
    watermarking/whitespacewatermarkgenerator.cpp \
    watermarking/watermarkgeneratorfactory.cpp \
    watermarking/watermarkgenerator.cpp \
    watermarking/watermark.cpp \
    watermarking/textwatermarkgenerator.cpp \
    watermarking/imagewatermarkgenerator.cpp \
    ui/featuresdialog.cpp \
    coding/signaturecoder.cpp \
    coding/codingmanager.cpp \
    coding/coder.cpp \
    ui/poststyle.cpp \
    ui/postwidgetelement.cpp \
    libwishmaster.cpp \
    notification/notificator.cpp \
    notification/notificationnewmessages.cpp \
    notification/notificationmanager.cpp \
    notification/notification.cpp \
    wishmasterapplication.cpp \
    components/threadid.cpp \
    chanlist.cpp \
    ui/threadlistmodel.cpp \
    ui/threadmodel.cpp \
    sqlitethreadstorage.cpp \
    contentpipe.cpp \
    standardchanmanager.cpp \
    chanagents/standardagentfactory.cpp \
    tasks/taskboardrequest.cpp \
    tasks/taskthreadrequest.cpp \
    tasks/taskattachmentrequest.cpp \
    ui/mainwindowcontroller.cpp \
    captchafetchers/captchafetcherfactory.cpp \
    captchafetchers/genericcaptchafetcher.cpp \
    timestampparser.cpp \
    tasks/tasksendpost.cpp \
    tasks/taskthumbnailrequest.cpp \
    ui/addressbarelement.cpp \
    ui/addressbar.cpp
HEADERS = main.h \
    analyzers/zipanalyzer.h \
    analyzers/raranalyzer.h \
    analyzers/extractor.h \
    analyzers/analyzer.h \
    boardparsers/parserfactory.h \
    boardparsers/boardparser.h \
    chanagents/defaultagent.h \
    chanagents/chanagent.h \
    chanagents/agentfactory.h \
    spellcheck/spellcheckermanager.h \
    spellcheck/spellchecker.h \
    spellcheck/dummyspellchecker.h \
    sqlite3/sqlite3ext.h \
    sqlite3/sqlite3.h \
    sqlite3/CppSQLite3.h \
    ui/threadoverviewdelegate.h \
    ui/threaditemmodel.h \
    ui/threaditemdelegate.h \
    ui/spellcheckhighlighter.h \
    ui/settingsframe.h \
    ui/postwidget.h \
    ui/postitemview.h \
    ui/postitemmodel.h \
    ui/postitemdelegate.h \
    ui/postedit.h \
    ui/postdocument.h \
    ui/newchandialog.h \
    ui/mainwindow.h \
    ui/imagewidget.h \
    ui/imageview.h \
    ui/imagemanager.h \
    ui/imagelist.h \
    ui/filteredit.h \
    ui/chanlisteditor.h \
    ui/boardsettingsdialog.h \
    ui/imageeditor/newimagedialog.h \
    ui/imageeditor/imageeditor.h \
    ui/imageeditor/imageeditarea.h \
    ui/imageeditor/colorwidget.h \
    chanmanager.h \
    log.h \
    keymapmanager.h \
    keymap.h \
    imagestorage.h \
    filtertext.h \
    filterlist.h \
    filter.h \
    extrainfo.h \
    extracontainer.h \
    entitycollector.h \
    singleton.h \
    paths.h \
    threadstorage.h \
    text.h \
    taskhub.h \
    task.h \
    filterwipe.h \
    ui/imageeditor/toolselection.h \
    ui/imageeditor/toolpencil.h \
    ui/imageeditor/editortool.h \
    components/threadptr.h \
    components/thread.h \
    components/postid.h \
    components/post.h \
    components/chan.h \
    components/boardconstraints.h \
    components/board.h \
    components/attachment.h \
    ui/exportthreaddialog.h \
    threadsaver.h \
    threadbuilderfactory.h \
    threadbuilder.h \
    mimetypes.h \
    chanwatcher.h \
    templatethreadbuilder.h \
    ui/templatethreadbuilderconfig.h \
    ui/tasklist.h \
    ui/imageeditor/toolfill.h \
    tasks/taskrequest.h \
    tasks/tasksavethread.h \
    watermarking/watermarkgeneratorfactory.h \
    watermarking/watermarkgenerator.h \
    watermarking/watermark.h \
    watermarking/textwatermarkgenerator.h \
    watermarking/imagewatermarkgenerator.h \
    watermarking/whitespacewatermarkgenerator.h \
    ui/featuresdialog.h \
    coding/signaturecoder.h \
    coding/codingmanager.h \
    coding/coder.h \
    ui/poststyle.h \
    ui/postwidgetelement.h \
    misc.h \
    libwishmaster.h \
    notification/notificator.h \
    notification/notificationnewmessages.h \
    notification/notificationmanager.h \
    notification/notification.h \
    wishmasterapplication.h \
    components/threadid.h \
    chanlist.h \
    ui/threadlistmodel.h \
    ui/threadmodel.h \
    sqlitethreadstorage.h \
    contentpipe.h \
    standardchanmanager.h \
    chanagents/standardagentfactory.h \
    tasks/taskboardrequest.h \
    tasks/taskthreadrequest.h \
    tasks/taskattachmentrequest.h \
    ui/mainwindowcontroller.h \
    captchafetchers/captchafetcher.h \
    captchafetchers/captchafetcherfactory.h \
    captchafetchers/genericcaptchafetcher_impl.h \
    captchafetchers/genericcaptchafetcher.h \
    timestampparser.h \
    tasks/tasksendpost.h \
    tasks/taskthumbnailrequest.h \
    ui/addressbar.h \
    ui/addressbarelement.h
RESOURCES += ../wishmaster.qrc
TARGET = ../../bin/wm
TRANSLATIONS = ../i18n/english.ts \
    ../i18n/russian.ts
OTHER_FILES += ../i18n/english.ts \
    ../i18n/russian.ts
FORMS += ui/boardsettingsdialog.ui \
    ui/settingsframe.ui \
    ui/postedit.ui \
    ui/newchandialog.ui \
    ui/mainwindow.ui \
    ui/imageview.ui \
    ui/imagemanager.ui \
    ui/imagelist.ui \
    ui/filteredit.ui \
    ui/chanlisteditor.ui \
    ui/imageeditor/imageeditor.ui \
    ui/imageeditor/newimagedialog.ui \
    ui/exportthread.ui \
    ui/templatethreadbuilderconfig.ui \
    ui/featuresdialog.ui
INCLUDEPATH += ui \
    ../wishmaster2-network/include
CONFIG(hunspell) {
    message("Building with hunspell support")
    SOURCES += spellcheck/hunspell_spellchecker.cpp
    HEADERS += spellcheck/hunspell_spellchecker.h
    DEFINES += HUNSPELL_FOUND
    LIBS += -lhunspell
}
else:message("Building without hunspell support")
win32 { 
    DEFINES += WIN32
    DEFINES += INSTALL_PREFIX=\\\".\\\"
}
unix { 
    DEFINES += UNIX
    DEFINES += INSTALL_PREFIX=\\\"/usr/local\\\"
}
INCLUDEPATH += ./.. \
    ../wishmaster2-network/include
LIBS += -L../bin -lwishmaster2-network -lws2_32
QMAKE_CXXFLAGS += -std=gnu++0x
